package com.woniuxy.carrental.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author author
 * @create 2021-10-08 14:32
 */
public class DateUtil {
    public static String data(){
        Date currentTime = new Date();

        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        String dateString = formatter.format(currentTime);
        return dateString;
    }
}
